<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/jquery.min.js">
    </script>
    <link rel="stylesheet" href="css/publish.css">
    <style>
        .box {
            display: inline-block;
            /* display: block; */
            border: 1px solid black;
            width: 400px;
            padding-top: 40px;
            /* 将内容向下移动 10px */

            /* display: flex;
        justify-content: center;
        align-items: center; */
        }

        ul {
            width: 280px;
            padding-left: 80px;
        }

        li {
            display: flex;
            /* 将列表项设置为flex布局 */
            align-items: center;
            /* 垂直居中对齐 */
            line-height: 30px;
            border-bottom: 1px dashed #cccccc;
        }

        li input {
            margin-right: 10px;
            /* 调整 input 和文本之间的间距 */
        }

        li a {
            margin-left: auto;
            text-decoration: none;
            /* 将链接置于最右侧 */
        }
    </style>
    
</head>

<body>
  <form>
    <div class="box" id="weibo">
      <span>标题：</span><input name="title" id = 'title'/>
      描述：<textarea name="" class="txt" cols="30" rows="10" id = 'description'></textarea>
      <div class="container">
        <h1>图片上传</h1>
        <input type='file' id="publish_url" onchange="uploadFile()">
        <div class="preview-section" id="preview-section-id">
            
        </div>
    </div>
  </div>
    <button type="button" onclick="publish()">发布</button><br>
  </form>
   
</body>
  <script src="js/publish.js"></script>
</html>